const path = require("path");

module.exports = {
    entry: "./src/main.js",
    output: {
        path: path.resolve(__dirname, "dist"),
        filename: "./main_[contenthash].js",
    },
    module: {
        rules: [
            {
                test: /\.css$/i,
                use: [
                    'style-loader', 'css-loader'
                ]
            }
        ]
    },
    mode: "production",
    optimization: {
        splitChunks: {
            chunks: 'all',
            minSize: 4000000,
            maxSize: 4000000
        },
    },
    // plugins: [
    //
    // ]
};